Generation
@Serializable
A generation is a grouping of the Pokémon games that separates them based on the Pokémon they include. In each generation, a new set of Pokémon, moves, abilities and types that did not exist in the previous generation are released. See: https://pokeapi.co/docs/v2#generations
Parameters
id
The identifier for this resource.
name
The name for this resource.
abilities
A list of abilities that were introduced in this generation.
names
The name of this resource listed in different languages.
main Region
The main region travelled in this generation.
moves
A list of moves that were introduced in this generation.
pokemon Species
A list of Pokémon species that were introduced in this generation.
types
A list of types that were introduced in this generation.
version Groups
A list of version groups that were introduced in this generation.
Constructors
Link copied to clipboard
constructor(id: Int, name: String, abilities: List<Handle.Named<Ability>>, names: List<Name>, mainRegion: Handle.Named<Region>, moves: List<Handle.Named<Move>>, pokemonSpecies: List<Handle.Named<PokemonSpecies>>, types: List<Handle.Named<Type>>, versionGroups: List<Handle.Named<VersionGroup>>)